import request from '@/utils/request'

export function selectWarehouse(data) {
  return request({
    url: '/api/wms/warehouse_permission/select_warehouse',
    method: 'post',
    data
  })
}
/**
 * 添加仓库权限
 * @param data
 * @returns {AxiosPromise}
 */
export function saveWarehousePermission(data) {
  return request({
    url: '/api/wms/warehouse_permission/save_all',
    method: 'post',
    data
  })
}

/**
 * 获取仓库管理列表
 * @param data
 * @returns {AxiosPromise}
 */
export function getWarehousePermissionList(data) {
  return request({
    url: '/api/wms/warehouse_permission/list_warehouse_manage',
    method: 'post',
    data
  })
}

/**
 * 获取仓库列表
 * @param data
 * @returns {AxiosPromise}
 */
export function getWarehouseList(data) {
  return request({
    url: '/api/wms/warehouse_permission/list_warehouse',
    method: 'post',
    data
  })
}
